package com.example.cartmanage.cart

import com.example.cartmanage.bean.CartListEntity
import com.example.cartmanage.chewei.entity.CheLiangEntity
import com.example.lib_base.mvvm.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.PUT
import retrofit2.http.Path

interface ApiService {
    @GET("/api/parking-spaces/area/1")
    suspend  fun getCartList():Res<MutableList<CartListEntity>>
    @GET("/api/vehicles/license/{licensePlate}")
    suspend fun getParkManager(@Path ("licensePlate")licensePlate:String):Res<CheLiangEntity>
    @PUT("/api/vehicles/{id}")
    suspend fun editPark(@Path ("id") id:Int, @Body body: RequestBody):Res<CheLiangEntity>
}